import pickle
def save(filename,mylist):    
    mybytes = pickle.dumps(mylist)
    list_file = open(filename,"wb")
    list_file.write(mybytes)
    list_file.close()
    if __name__=="__main__":
        print "Saved"

def load(filename):
    readfile = open(filename,"rb")
    mybytes = readfile.read()
    mylist = pickle.loads(mybytes)
    if __name__=="__main__":
        print "Loaded"
    return mylist

if __name__=="__main__":
    funcs={"fuwei":"shuai", "lijuan":"piaoliang"}
    print funcs
    save("fuwei",funcs)
    dict2 = load("fuwei")
    print dict2